###FIRST RUN Study 1 Data Code.R###

####APPENDIX TABLE 2####
##COLLECTIVE BARGAINING
#FEDERAL CONSTITUTION (COLUMN 1)
glm(CB_FED_SQ ~ CB_FED_TREAT*RISK + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + UNIONS + WORKS + BLACK + HISP + WHITE, data=study1, family=binomial(link="logit"),subset=CONDITION == "CONSTITUTION")

#FEDERAL LAW (COLUMN 2)
glm(CB_FED_SQ ~ CB_FED_TREAT*RISK + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + UNIONS + WORKS + BLACK + HISP + WHITE, data=study1, family=binomial(link="logit"),subset=CONDITION == "LAW")

#STATE CONSTITUTION (COLUMN 3)
glm(CB_ST_SQ ~ CB_ST_TREAT*RISK + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + UNIONS + WORKS + BLACK + HISP + WHITE, data=study1, family=binomial(link="logit"),subset=CONDITION == "CONSTITUTION")

#STATE LAW (COLUMN 4)
glm(CB_ST_SQ ~ CB_ST_TREAT*RISK + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + UNIONS + WORKS + BLACK + HISP + WHITE, data=study1, family=binomial(link="logit"),subset=CONDITION == "LAW")

##2/3 MAJORITY
#FEDERAL CONSTITUTION (COLUMN 5)
glm(MAJ_FED_SQ ~ MAJ_FED_TREAT*RISK + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + TAXES + WORKS + BLACK + HISP + WHITE, data=study1, family=binomial(link="logit"),subset=CONDITION == "CONSTITUTION")

#FEDERAL LAW (COLUMN 6)
glm(MAJ_FED_SQ ~ MAJ_FED_TREAT*RISK + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + TAXES + WORKS + BLACK + HISP + WHITE, data=study1, family=binomial(link="logit"),subset=CONDITION == "LAW")

#STATE CONSTITUTION (COLUMN 7)
glm(MAJ_ST_SQ ~ MAJ_ST_TREAT*RISK + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + TAXES + WORKS + BLACK + HISP + WHITE, data=study1, family=binomial(link="logit"),subset=CONDITION == "CONSTITUTION")

#STATE LAW (COLUMN 8)
glm(MAJ_ST_SQ ~ MAJ_ST_TREAT*RISK + MALE + AGE + EDUCATION + INCOME + LIBCON + RISK + TAXES + WORKS + BLACK + HISP + WHITE, data=study1, family=binomial(link="logit"),subset=CONDITION == "LAW")
########################